﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Composite.UnityExtensions;
using System.Windows;
using Microsoft.Practices.Composite.Modularity;
using NetManager.DefaultLayout;
using NetManager.LocalBrowser;

namespace NetManager
{
    public class Bootstrapper : UnityBootstrapper
    {
        protected override DependencyObject CreateShell()
        {
            var shell = new Shell();
            shell.Show();

            return shell;
        }

        protected override IModuleCatalog GetModuleCatalog()
        {
            var moduleCatalog = new ModuleCatalog();
            moduleCatalog.AddModule(typeof(LocalBrowserModule));
            moduleCatalog.AddModule(typeof(DefaultLayoutModule));
            
            return moduleCatalog;
        }
    }
}
